<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!doctype html>
<html>
<head>
<meta name="author" content="shangzhengbo&sunchangxing" />
<meta content="telephone=no" name="format-detection">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta
	content="width=device-width, minimum-scale=1,initial-scale=1, maximum-scale=1, user-scalable=1"
	id="viewport" name="viewport">
<meta charset="utf-8">
<title>美食推荐</title>
<script type="text/javascript">
	/**
function onBridgeReady() {
		WeixinJSBridge.call('hideOptionMenu');
	}
	if (typeof WeixinJSBridge == "undefined") {
		if (document.addEventListener) {
			document.addEventListener('WeixinJSBridgeReady', onBridgeReady,
					false);
		} else if (document.attachEvent) {
			document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
			document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
		}
	} else {
		onBridgeReady();
	}
	// 对浏览器的UserAgent进行正则匹配，不含有微信独有标识的则为其他浏览器
	var useragent = navigator.userAgent;
	if (useragent.match(/MicroMessenger/i) != 'MicroMessenger') {
		// 这里警告框会阻塞当前页面继续加载
		var opened = window.open('about:blank', '_self');
		opened.opener = null;
		opened.close();
		window.location.href = "../error/wechat.html"
	}
	*/
</script>
<link rel="stylesheet" type="text/css" href="../css/login.css">
<link rel="stylesheet" type="text/css" href="../css/registarr.css">
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/zhmm.js"></script>
</head>

<body>
	<%
		String action = (String) request.getParameter("action");
		try {
			if (action.equals("add")) {
				String Code = request.getParameter("valcode").trim();
				if (Code.length() >= 1) {
					if (Code.equals(request.getSession()
							.getAttribute("zhmmcode").toString().trim())) {
						session.removeAttribute("zhmmcode");
						RequestDispatcher rd = request
								.getRequestDispatcher("czmm.jsp");
						rd.forward(request, response);
					} else {
						out.print("<label   class='error userpwd'>验证码不正确!</label>");
					}

				} else {
					out.print("<label   class='error userpwd'>验证码不能为空!</label>");
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	%>
	<jsp:include page="../Share/top_back.jsp"></jsp:include>
	<script type="text/javascript">
	function backhistory() {
		window.history.go(-1);
	}
		$("#alltitle").html("找回密码");
	</script>
	<form id="form2" name="form2" method="post"
		action="zhmm.jsp?action=add">
		<ul class="loginBox">
			<li><input type="tel" placeholder="请输入手机号"
				onFocus="valfocusMobile()" name="userPhone" onBlur="valMobileblur()"
				id="userPhone" class="txtinput txtindent" /></li>
			<li><span> <input type="text" placeholder="验证码"
					name="valcode" class="yzm yzmjj" /> <input type="button"
					onclick="zhmm(this)" class="yzm btnhq" value="获取验证码" />
			</span></li>
			<li><input type="submit" id="btnregist" value="下一步"
				class="txtinput btnregist" /></li>
		</ul>
		<script src="js/jquery.min.js"></script>
		<script src="js/zhmm.js"></script>
	</form>
</body>
</html>
